package net.wavorizer.model;

import net.wavorizer.util.Utils;

import javax.jdo.annotations.*;
import java.util.Date;
import java.util.List;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class BotAddition
{
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private Date creationDate;

    @Persistent
    private String addedBy;

    @Persistent
    private String waveId;

    @Persistent
    private String waveletId;

    @Persistent
    private List<String> participants;

    public Long getId() {
        return id;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public String getAddedBy() {
        return Utils.remNull(addedBy);
    }

    public void setAddedBy(String addedBy) {
        this.addedBy = addedBy;
    }

    public String getWaveId() {
        return Utils.remNull(waveId);
    }

    public void setWaveId(String waveId) {
        this.waveId = waveId;
    }

    public String getWaveletId() {
        return Utils.remNull(waveletId);
    }

    public void setWaveletId(String waveletId) {
        this.waveletId = waveletId;
    }

    public List<String> getParticipants() {
        return participants;
    }

    public void setParticipants(List<String> participants) {
        this.participants = participants;
    }
}
